package com.school.information.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.school.information.entity.SysUserEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Set;

@Data
@Accessors(chain = true)
public class UserVO {

    /**
     * 用户信息
     */
    private SysUserEntity user;
    /**
     * 角色列表
     */
    private Set<String> roles;
    /**
     * 权限列表
     */
    private Set<String> permissions;
    /**
     * 角色ids集合
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Set<Long> roleIds;
}
